dgb(phase-b): pool-attempts-per-second SSOT + conformance KAT - #407
Merged
Conversation
frstrtr
force-pushed
the
dgb/pool-aps-ssot
branch
from
June 24, 2026 06:37
7748a3b to
ea29058
Compare
Lift the pure arithmetic core of ShareTracker::get_pool_attempts_per_second into header-only coin/pool_attempts_per_second.hpp: attempts_per_second = attempts / max(1, near_ts - far_ts) with the dist>=2 + near-in-chain + far-resolved guards and the integer divide. Pinned non-circularly against the p2pool-dgb-scrypt data.py oracle get_pool_attempts_per_second (attempts // time, time<=0 -> 1, integer path). FENCED, dgb-tree-local, additive. share_tracker.hpp NOT rewired -- the byte-identity delegation is the follow-on; the lifted body is a verbatim copy of the inline (same int32_t span, same uint288 divide) so that follow-on is provably value-identical. The chain walk (get_nth_parent_hash / get_delta) stays in ShareTracker. Test registered in the dir CMakeLists allowlist and both build.yml --target arms (#143 NOT_BUILT trap). 10/10 green; consensus-neutral pure arithmetic.
frstrtr
force-pushed
the
dgb/pool-aps-ssot
branch
from
June 24, 2026 09:37
ea29058 to
824f2d7
Compare
frstrtr
added a commit
that referenced
this pull request
Jun 25, 2026
dgb: rewire get_pool_attempts_per_second onto coin/ SSOT (#407 follow-on)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
FENCED Phase-B share/pool conformance slice (one pillar).
What: Lift the pure arithmetic core of
ShareTracker::get_pool_attempts_per_second(share_tracker.hpp:1306) into header-onlysrc/impl/dgb/coin/pool_attempts_per_second.hpp:with the
dist>=2+ near-in-chain + far-resolved guards and the integer divide.Oracle: pinned non-circularly vs p2pool-dgb-scrypt
data.py get_pool_attempts_per_second(attempts // time,time<=0 -> 1, integer path). All KAT expecteds are hand-derived from the oracle expression, not produced by the helper under test.Scope / fence: dgb-tree-local, additive.
share_tracker.hppis NOT rewired — the byte-identity delegation is the follow-on; the lifted body is a verbatim copy of the inline (same int32_t span, same uint288 divide) so that follow-on is provably value-identical. The chain walk (get_nth_parent_hash / get_delta) stays in ShareTracker.Test:
dgb_pool_attempts_per_second_test— 10/10 green locally. Registered in the dir CMakeLists allowlist and both build.yml--targetarms (#143 NOT_BUILT trap).Consensus-neutral pure arithmetic. No self-merge.